<?php
Zend_Session::start();
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
	//
	//Khoi tao function autoload
	//Tu dong load cac module, form, ...
	protected function _initAutoload()
    {
        $autoloader = new  Zend_Application_Module_Autoloader(array(
        'namespace' => '',
        'basePath' => dirname(__FILE__)
        ));
        return $autoloader;
    }
	
	//Ket noi database
	protected function _initDb()
	{
		$db = Zend_Db::factory('Pdo_Mysql',array(
													'local'=>'localhost',
													'username'=>'root',
													'password'=>'123',
													'dbname'=>'qtdata',
													'charset'=>'utf8'
												));
		$db->setFetchMode(Zend_Db::FETCH_BOTH);
		Zend_Db_Table::setDefaultAdapter($db);
		return $db;	
	}

    
}

